#!/usr/bin/python
# -*- coding: UTF-8 -*-

def fib(n):
    a, b , i = 0, 1, 0
    while i < n:
        yield b
        a, b = b, a+b
        i += 1

if __name__ == '__main__':
    f = fib(10)
    for item in f:
        print(item)